<?php
/**
 * The following variables are available in this template:
 * - $this: the CrudCode object
 */
?>
<div class="wide form">

	<?php echo "<?php \$form=\$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl(\$this->route),
	'method'=>'get',
)); ?>\n"; ?>

	<?php foreach ($this->modelObject->attributeNames() as $name): ?>
		<?php
		$field = $this->generateInputField($this->modelClass, $name);
		if (strpos($field, 'password') !== false)
			continue;
		?>
		<div class="row">
			<?php echo "<?php echo \$form->label(\$model,'{$name}'); ?>\n"; ?>
			<?php echo "<?php echo " . $this->generateActiveField($this->modelClass, $name) . "; ?>\n"; ?>
		</div>

	<?php endforeach; ?>
	<div class="row buttons">
		<?php echo "<?php echo CHtml::submitButton('Search'); ?>\n"; ?>
	</div>

	<?php echo "<?php \$this->endWidget(); ?>\n"; ?>

</div><!-- search-form -->